<template>
  <div style="padding: 15px;" @click="toggleClick">
    <svg-icon icon-class="ic_cebianshouqi" :class="{'is-active':!isActive}" />
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick() {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style scoped lang="scss">
/deep/ .svg-icon {
  font-size: 20px;
  color: #1EFFFD;
  cursor: pointer;
  &.is-active {
    transform: rotate(180deg);
  }
}

</style>
